-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ingest from Publisher side to track drop rate #2
base: master
Are you sure you want to change the base?
Conversation
ResourceAPIVersion: "v1", | ||
ResourceKind: "Pod", | ||
ResourceNamespace: "nginx", | ||
ResourceName: "dywuperf-deployment-10kpods-69bd64c867-h2wdx", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we parameterize this? We can also suffix with violation count 1 to n being the total number of pods in the test.
ResourceKind: "Pod", | ||
ResourceNamespace: "nginx", | ||
ResourceName: "dywuperf-deployment-10kpods-69bd64c867-h2wdx", | ||
ResourceLabels: map[string]string{"app": "dywuperf-app-100kpods", "pod-template-hash": "69bd64c867"}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here as well
Timestamp: now, | ||
BrokerName: BROKERNAME, | ||
UserAgent: "Publisher", | ||
CorrelationId: uuid.New().String(), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just for my info - are guid not supported in Go? Looks like uuid is more universal with 128-bit but wondering if that is needed. Could maybe save us from importing a package ....
@@ -69,58 +75,57 @@ func main() { | |||
time.Sleep(300 * time.Hour) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
configurable? In case we need to adjust intervals in the future
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch will add a forever loop
log.Printf("total time it took %v", end_time.Sub(start_time)) | ||
|
||
fmt.Println("Sleep starting now: ", time.Now()) | ||
time.Sleep(15*time.Minute); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Configurable? Not sure if this 15 minute or the 5 minute inside main() actually toggles the interval simulating GK audit.
No description provided.